package com.cqjtu.graduation.entity;

/**
 * Notice实体类，对于数据库中notice表
 */
public class NoticeDO {
    private Integer noticeId;
    private String  noticeContent;
    private String  noticeTime;

    public Integer getNoticeId() {
        return noticeId;
    }

    public void setNoticeId(Integer noticeId) {
        this.noticeId = noticeId;
    }

    public String getNoticeContent() {
        return noticeContent;
    }

    public void setNoticeContent(String noticeContent) {
        this.noticeContent = noticeContent;
    }

    public String getNoticeTime() {
        return noticeTime;
    }

    public void setNoticeTime(String noticeTime) {
        this.noticeTime = noticeTime;
    }

    @Override
    public String toString() {
        return "NoticeDao{" +
                "noticeId=" + noticeId +
                ", noticeContent='" + noticeContent + '\'' +
                ", noticeTime='" + noticeTime + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof NoticeDO)) return false;

        NoticeDO noticeDao = (NoticeDO) o;

        if (getNoticeId() != null ? !getNoticeId().equals(noticeDao.getNoticeId()) : noticeDao.getNoticeId() != null)
            return false;
        if (getNoticeContent() != null ? !getNoticeContent().equals(noticeDao.getNoticeContent()) : noticeDao.getNoticeContent() != null)
            return false;
        return getNoticeTime() != null ? getNoticeTime().equals(noticeDao.getNoticeTime()) : noticeDao.getNoticeTime() == null;
    }

    @Override
    public int hashCode() {
        int result = getNoticeId() != null ? getNoticeId().hashCode() : 0;
        result = 31 * result + (getNoticeContent() != null ? getNoticeContent().hashCode() : 0);
        result = 31 * result + (getNoticeTime() != null ? getNoticeTime().hashCode() : 0);
        return result;
    }
}
